package com.tx.websocket.demo.service;



import com.tx.websocket.demo.common.OffsetBean;
import com.tx.websocket.demo.dto.UserRoleDto;
import com.tx.websocket.demo.model.User;

import java.util.List;

public interface UserService {

    Integer addUser(User user);

    List<User> listUser(User user, OffsetBean offsetBean);

    User getUserByPrimaryKey(Long id);

    Integer delUserByPrimaryKey(Long id);

    Integer updateUser(User user);

    User getUserByUsername(String username);

    Integer totalUser(User user);

    UserRoleDto doUserRoleRel(Long userId);

    Integer doUserRoleBinding(Long userId, List<Long> roleIds);
}
